/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
  const { router, controller } = app
  router.get('/', controller.home.index)
  router.post('createPost', '/Jian/posts', controller.post.create)
  router.get('/Jian/user/:id', controller.user.info)
  router.post('/Jian/supplier/getSupplierInfoByBody', controller.supplier.getSupplierInfoByBody)
  router.post('/Jian/supplier/exportExcel', controller.supplier.exportExcel)
  router.post('/Jian/supplier/saveSupplierInfoByBody', controller.supplier.saveSupplierInfoByBody)
  router.post('/Jian/supplier/deleteSupplierInfoByBody', controller.supplier.deleteSupplierInfoByBody)
}
